$def with (work)

<a href="$work.url()">$work.title</a>